package com.kexinde.wjifen.dao.impl;

import java.util.List;

import org.springframework.stereotype.Component;

import com.kexinde.wjifen.model.ConsumptionRecord;

@Component("consumptionRecordDao")
public class ConsumptionRecordDao extends BaseDao<ConsumptionRecord> {

	@SuppressWarnings("unchecked")
	public List<ConsumptionRecord> findByShopAndNormalUser(long shopId, long normalUserId){
		List<ConsumptionRecord> consumptionRecords = hibernateTemplate.find("from ConsumptionRecord c where c.shop=" + shopId + " and c.normalUser=" + normalUserId);
		return consumptionRecords;
	}
}
